home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / news / rn / mbox.saver < prev    next >
Encoding:
Text File  |  1989-05-26  |  856 b   |  34 lines

  1. #!/bin/sh
  2. # $Header: mbox.saver.SH,v 4.3.1.2 85/05/20 15:55:37 lwall Exp $
  3. # $Log:    mbox.saver.SH,v $
  4. # Revision 4.3.1.2  85/05/20  15:55:37  lwall
  5. # Turned makedepend.SH into $5.
  6. # Revision 4.3.1.1  85/05/10  11:35:30  lwall
  7. # Branch for patches.
  8. # Revision 4.3  85/05/01  11:42:51  lwall
  9. # Baseline for release with 4.3bsd.
  10. #    Arguments:
  11. #    1 Full name of article (%A)
  12. #    2 Public news spool directory (%P)
  13. #    3 Directory of current newsgroup (%c)
  14. #    4 Article number (%a)
  15. #    5 Where in article to start (%B)
  16. #    6 Newsgroup name (%C)
  17. #    7 Save destination (%b)
  18. #    8 First line of message, normally From...
  19. #
  20. export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)
  21.  
  22. ( echo "$8"
  23.   case "$5" in
  24.   0) echo "Article $4 of $6:" ;;
  25.   esac
  26.   tail +$5c $1 | sed "s/^From/>From/"
  27.   echo ""
  28.   echo "" ) >> $7
  29.